"""t = {'张': 22, '关': 22, '刘': 32}
print(t['关'])
添加
t['李'] = 111
print(t)"""

xiaoming = {
    'age': 20,
    'class': '20-5',
    'gender': 'male'
}
for i in xiaoming:
    print(i)


for i in xiaoming.values():
    print(i)


for m, n in xiaoming.items():
    print(m, n)


print(xiaoming.get('age1', '无'))


c = {
    'country': 'USA',
    'height': '170',
}

# update():举例 a.update(b)
# s+t s.extend(t)
xiaoming.update(c)
print(xiaoming)